﻿using MySqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Web.WebModels;

namespace Web.Serices
{
    public class StudentService
    {
        protected readonly SqlSugarClient _db = SugarDao.GetInstance();
        public Student GetById(int id)
        {
            return _db.Queryable<Student>().InSingle(id);
        }
    }
}
